package com.tocean.app.entity.common;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(name = "wrong_set")
public class WrongSet implements Serializable {


    @ApiModelProperty("用户ID(主键)")
    @TableId
    @NotBlank(message = "用户ID不能为空")
    private String userId;

    @ApiModelProperty("题目ID")
    @NotBlank(message = "题目ID不能为空")
    private String topicId;

}
